import Vue from 'vue'
import App from './App.vue'

//引入mock服务器 项目就可以使用mock数据了
import "@/mock/mockServer";

//引入路由器
import router from "@/router"
//引入store
import store from "@/store"

//引入全局组件
import "@/main/compoents"
//引入element-ui
import "@/main/element"
//引入图片懒加载
import "@/main/lazyLoad"
//引入表单校验
import "@/main/validate"


Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
  //注册事件总线
  beforeCreate(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')

